package com.wltt.product.ahuthr.mapper;

import java.util.List;

import com.wltt.product.ahuthr.model.bo.ListUserDetailSalaryBO;
import org.apache.ibatis.annotations.Param;
import com.wltt.product.ahuthr.model.po.SalaryPO;
import com.wltt.product.ahuthr.mapper.base.BaseMapper;


/**
 * @ClassName: SalaryPO
 * @Description: Dao
 * @Date: 2024-05-30 14:34:21
 * @Author yanggl
 */
public interface SalaryMapper extends BaseMapper<SalaryPO, Long> {

    /**
     * 根据人员id查询薪资
     *
     * @param userId
     * @return
     */
    SalaryPO queryByUserId(@Param("userId") Long userId);

    /**
     * 查询人员薪资详细列表
     *
     * @param
     * @return
     */
    List<ListUserDetailSalaryBO> listUserDetailSalary();

    /**
     * 根据id更新全量字段
     *
     * @param
     * @return
     */
    void updateAllColumnById(SalaryPO salaryPO);

    /**
     * 根据人员id删除
     *
     * @param
     * @return
     */
    void deleteByUserId(@Param("userId") Long userId);
}